package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Subject;
import com.net.tkc.pro.impl.SubjectImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SubjectService{
    @Resource
    SubjectImpl subjectImpl;

    public int addSubject(Subject Subject) {
        return subjectImpl.addSubject(Subject);
    }

    public int upSubject(int examine, int id) {
        return subjectImpl.upSubject(examine, id);
    }

    public List<Subject> getList(int category) {
        return subjectImpl.getList(category);
    }
    public List<Subject> getList2() {
        return subjectImpl.getList2();
    }
}
